# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-asn1tools
_pkgname=asn1tools
pkgver=0.167.0
pkgrel=3
pkgdesc='ASN.1 parsing, encoding and decoding.'
arch=('any')
url='https://pypi.org/project/asn1tools/#files'
license=('MIT')
depends=('python' 'licenses' 'python-prompt_toolkit' 'python-diskcache'
         'python-bitstruct')
makedepends=('python-pip' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('79e2d75c9691dbeab67026679a0e25677a999b73bc7ac193a999f36b041d859df74c5d80a4e7b0210f1ebd0e63b70349003d2df5cd779948d1987be2de57757c')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

